package ${package.Mapper};

import ${package.Entity}.${entity};
import ${superMapperClassPackage};
<#if pojoConfig.vo>
import ${pojoPackage}.vo.${entity}Vo;
</#if>
<#if pojoConfig.qo>
import ${pojoPackage}.qo.${entity}Qo;
import ${pojoPackage}.to.${entity}To;
</#if>
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * ${table.comment!} Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.mapperName} : ${superMapperClass}<${entity}>
<#else>
public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {

<#if pojoConfig.qo>
   /**
    * 列表
    * @param page mybatis-plus分页参数
    * @param qo 查询参数
    * @return 列表
    */
    IPage<#noparse><</#noparse>${entity}To<#noparse>></#noparse> list(Page page, @Param("qo") ${entity}Qo qo);
</#if>

<#if pojoConfig.vo>
   /**
   * 详情
   * @param id ID
   * @return ${entity}Vo
   */
   ${entity}Vo get(@Param("id")${table.commonFields[0].propertyType} id);
</#if>
}
</#if>
